Package com.cisco.pt.ipc.sim.pdu.impl
Class ARPPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.ARPPacketImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected MACAddressprotected Byteprotected Shortprotected Byteprotected Shortprotected IPAddressprotected MACAddressprotected ShortFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDstIpAddress(IPAddress dstIpAddress) voidsetDstMacAddress(MACAddress dstMacAddress) voidsetHardWareLength(Byte hardWareLength) voidsetHardwareType(Short hardwareType) voidsetProtocolLength(Byte protocolLength) voidsetProtocolType(Short protocolType) voidsetSrcIpAddress(IPAddress srcIpAddress) voidsetSrcMacAddress(MACAddress srcMacAddress) voidsetUsOperation(Short usOperation) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
hardwareType
-
protocolType
-
hardWareLength
-
protocolLength
-
usOperation
-
srcMacAddress
-
srcIpAddress
-
dstMacAddress
-
dstIpAddress
-
-
Constructor Details
-
ARPPacketImpl
public ARPPacketImpl()
-
-
Method Details
-
getHardwareType
- Specified by:
getHardwareTypein interfaceARPPacket- Returns:
- Short Returns a Short
-
setHardwareType
- Specified by:
setHardwareTypein interfaceARPPacket- Parameters:
hardwareType- Takes in a parameter of hardwareType
-
getProtocolType
- Specified by:
getProtocolTypein interfaceARPPacket- Returns:
- Short Returns a Short
-
setProtocolType
- Specified by:
setProtocolTypein interfaceARPPacket- Parameters:
protocolType- Takes in a parameter of protocolType
-
getHardWareLength
- Specified by:
getHardWareLengthin interfaceARPPacket- Returns:
- Byte Returns a Byte
-
setHardWareLength
- Specified by:
setHardWareLengthin interfaceARPPacket- Parameters:
hardWareLength- Takes in a parameter of hardWareLength
-
getProtocolLength
- Specified by:
getProtocolLengthin interfaceARPPacket- Returns:
- Byte Returns a Byte
-
setProtocolLength
- Specified by:
setProtocolLengthin interfaceARPPacket- Parameters:
protocolLength- Takes in a parameter of protocolLength
-
getUsOperation
- Specified by:
getUsOperationin interfaceARPPacket- Returns:
- Short Returns a Short
-
setUsOperation
- Specified by:
setUsOperationin interfaceARPPacket- Parameters:
usOperation- Takes in a parameter of usOperation
-
getSrcMacAddress
- Specified by:
getSrcMacAddressin interfaceARPPacket- Returns:
- MACAddress Returns a MACAddress
-
setSrcMacAddress
- Specified by:
setSrcMacAddressin interfaceARPPacket- Parameters:
srcMacAddress- Takes in a parameter of srcMacAddress
-
getSrcIpAddress
- Specified by:
getSrcIpAddressin interfaceARPPacket- Returns:
- IPAddress Returns a IPAddress
-
setSrcIpAddress
- Specified by:
setSrcIpAddressin interfaceARPPacket- Parameters:
srcIpAddress- Takes in a parameter of srcIpAddress
-
getDstMacAddress
- Specified by:
getDstMacAddressin interfaceARPPacket- Returns:
- MACAddress Returns a MACAddress
-
setDstMacAddress
- Specified by:
setDstMacAddressin interfaceARPPacket- Parameters:
dstMacAddress- Takes in a parameter of dstMacAddress
-
getDstIpAddress
- Specified by:
getDstIpAddressin interfaceARPPacket- Returns:
- IPAddress Returns a IPAddress
-
setDstIpAddress
- Specified by:
setDstIpAddressin interfaceARPPacket- Parameters:
dstIpAddress- Takes in a parameter of dstIpAddress
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-